home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: mod.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
66%
| dexvert
| SoundTracker Module (music/soundTracker)
| ext
| Supported |
1%
| dexvert
| Black Viper packed music (music/blackViperPackedMusic)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 6d 6f 64 20 2d 2d 2d |\section|{mod ---|
|00000010| 20 52 65 6d 61 69 6e 64 | 65 72 20 61 66 74 65 72 | Remaind|er after|
|00000020| 20 64 69 76 69 73 69 6f | 6e 7d 0d 5c 6c 61 62 65 | divisio|n}.\labe|
|00000030| 6c 7b 66 6e 3a 6d 6f 64 | 7d 0d 5c 69 6e 64 65 78 |l{fn:mod|}.\index|
|00000040| 7b 6d 6f 64 28 29 7d 0d | 5c 69 6e 64 65 78 7b 64 |{mod()}.|\index{d|
|00000050| 69 76 69 73 69 6f 6e 21 | 6d 6f 64 75 6c 6f 7d 0d |ivision!|modulo}.|
|00000060| 5c 69 6e 64 65 78 7b 72 | 65 6d 61 69 6e 64 65 72 |\index{r|emainder|
|00000070| 20 61 66 74 65 72 20 64 | 69 76 69 73 69 6f 6e 7d | after d|ivision}|
|00000080| 0d 5c 62 65 67 69 6e 7b | 72 61 69 6c 7d 0d 4d 6f |.\begin{|rail}.Mo|
|00000090| 64 20 3a 20 27 6d 6f 64 | 27 20 27 28 27 20 28 28 |d : 'mod|' '(' ((|
|000000a0| 20 53 63 61 6c 61 72 20 | 27 2c 27 20 53 63 61 6c | Scalar |',' Scal|
|000000b0| 61 72 20 29 20 7c 20 28 | 20 4d 61 74 72 69 78 20 |ar ) | (| Matrix |
|000000c0| 27 2c 27 20 4d 61 74 72 | 69 78 20 29 29 20 27 29 |',' Matr|ix )) ')|
|000000d0| 27 20 3b 0d 5c 65 6e 64 | 7b 72 61 69 6c 7d 0d 0d |' ;.\end|{rail}..|
|000000e0| 5c 76 65 72 62 2b 6d 6f | 64 2b 20 72 65 74 75 72 |\verb+mo|d+ retur|
|000000f0| 6e 73 20 74 68 65 20 66 | 6c 6f 61 74 69 6e 67 20 |ns the f|loating |
|00000100| 70 6f 69 6e 74 20 72 65 | 6d 61 69 6e 64 65 72 20 |point re|mainder |
|00000110| 6f 66 20 74 68 65 0d 64 | 69 76 69 73 69 6f 6e 20 |of the.d|ivision |
|00000120| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 61 72 67 |of the f|irst arg|
|00000130| 75 6d 65 6e 74 20 62 79 | 20 74 68 65 20 73 65 63 |ument by| the sec|
|00000140| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 2e 0d 49 66 |ond argu|ment..If|
|00000150| 20 74 68 65 20 64 69 76 | 69 73 6f 72 20 69 73 20 | the div|isor is |
|00000160| 7a 65 72 6f 20 6f 72 20 | 69 66 20 74 68 65 20 64 |zero or |if the d|
|00000170| 69 76 69 73 69 6f 6e 20 | 77 6f 75 6c 64 20 6f 76 |ivision |would ov|
|00000180| 65 72 66 6c 6f 77 2c 20 | 74 68 65 6e 20 69 74 20 |erflow, |then it |
|00000190| 72 65 74 75 72 6e 73 0d | 7a 65 72 6f 2e 20 57 68 |returns.|zero. Wh|
|000001a0| 65 6e 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 73 |en the a|rguments|
|000001b0| 20 5c 76 65 72 62 2b 6d | 6f 64 2b 20 61 72 65 20 | \verb+m|od+ are |
|000001c0| 62 6f 74 68 20 6d 61 74 | 72 69 63 65 73 2c 20 74 |both mat|rices, t|
|000001d0| 68 65 6e 20 61 6e 0d 65 | 6c 65 6d 65 6e 74 20 62 |hen an.e|lement b|
|000001e0| 79 20 65 6c 65 6d 65 6e | 74 20 6f 70 65 72 61 74 |y elemen|t operat|
|000001f0| 69 6f 6e 20 69 73 20 70 | 65 72 66 6f 72 6d 65 64 |ion is p|erformed|
|00000200| 2c 20 73 6f 20 74 68 65 | 79 20 6d 75 73 74 20 68 |, so the|y must h|
|00000210| 61 76 65 20 74 68 65 0d | 73 61 6d 65 20 64 69 6d |ave the.|same dim|
|00000220| 65 6e 73 69 6f 6e 73 2e | 0d 0d 0d 5c 70 61 72 61 |ensions.|...\para|
|00000230| 67 72 61 70 68 7b 45 78 | 61 6d 70 6c 65 7d 0d 5c |graph{Ex|ample}.\|
|00000240| 69 6e 64 65 78 7b 65 78 | 61 6d 70 6c 65 20 6f 66 |index{ex|ample of|
|00000250| 20 6d 6f 64 28 29 7d 0d | 5c 69 6e 64 65 78 7b 6d | mod()}.|\index{m|
|00000260| 6f 64 28 29 21 65 78 61 | 6d 70 6c 65 7d 0d 5c 62 |od()!exa|mple}.\b|
|00000270| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 3e |egin{ver|batim}.>|
|00000280| 20 6d 6f 64 28 37 2c 32 | 29 0d 20 20 20 20 20 20 | mod(7,2|). |
|00000290| 20 20 31 0d 3e 20 6d 6f | 64 28 38 2c 33 29 0d 20 | 1.> mo|d(8,3). |
|000002a0| 20 20 20 20 20 20 20 32 | 0d 3e 20 6d 6f 64 28 31 | 2|.> mod(1|
|000002b0| 37 2c 36 29 0d 20 20 20 | 20 20 20 20 20 35 0d 3e |7,6). | 5.>|
|000002c0| 20 6d 6f 64 28 31 38 2c | 36 29 0d 20 20 20 20 20 | mod(18,|6). |
|000002d0| 20 20 20 30 0d 3e 20 4d | 61 74 31 20 3d 20 72 6f | 0.> M|at1 = ro|
|000002e0| 75 6e 64 28 72 61 6e 64 | 28 32 2c 35 29 2a 31 30 |und(rand|(2,5)*10|
|000002f0| 30 29 0d 20 4d 61 74 31 | 20 3d 0d 20 20 20 20 20 |0). Mat1| =. |
|00000300| 20 20 36 35 20 20 20 20 | 20 20 20 20 20 39 31 20 | 65 | 91 |
|00000310| 20 20 20 20 20 20 20 20 | 33 30 20 20 20 20 20 20 | |30 |
|00000320| 20 20 20 37 30 20 20 20 | 20 20 20 20 20 20 20 39 | 70 | 9|
|00000330| 20 20 0d 20 20 20 20 20 | 20 20 31 33 20 20 20 20 | . | 13 |
|00000340| 20 20 20 20 20 31 31 20 | 20 20 20 20 20 20 20 20 | 11 | |
|00000350| 32 37 20 20 20 20 20 20 | 20 20 20 39 35 20 20 20 |27 | 95 |
|00000360| 20 20 20 20 20 20 39 30 | 20 20 0d 3e 20 4d 61 74 | 90| .> Mat|
|00000370| 32 20 3d 20 72 6f 75 6e | 64 28 72 61 6e 64 28 32 |2 = roun|d(rand(2|
|00000380| 2c 35 29 2a 31 30 29 0d | 20 4d 61 74 32 20 3d 0d |,5)*10).| Mat2 =.|
|00000390| 20 20 20 20 20 20 20 20 | 33 20 20 20 20 20 20 20 | |3 |
|000003a0| 20 20 20 33 20 20 20 20 | 20 20 20 20 20 20 37 20 | 3 | 7 |
|000003b0| 20 20 20 20 20 20 20 20 | 20 32 20 20 20 20 20 20 | | 2 |
|000003c0| 20 20 20 20 34 20 20 0d | 20 20 20 20 20 20 20 20 | 4 .| |
|000003d0| 33 20 20 20 20 20 20 20 | 20 20 20 38 20 20 20 20 |3 | 8 |
|000003e0| 20 20 20 20 20 20 37 20 | 20 20 20 20 20 20 20 20 | 7 | |
|000003f0| 20 35 20 20 20 20 20 20 | 20 20 20 20 34 20 20 0d | 5 | 4 .|
|00000400| 3e 20 6d 6f 64 28 4d 61 | 74 31 2c 4d 61 74 32 29 |> mod(Ma|t1,Mat2)|
|00000410| 0d 20 20 20 20 20 20 20 | 20 32 20 20 20 20 20 20 |. | 2 |
|00000420| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 32 | 1 | 2|
|00000430| 20 20 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | | 0 |
|00000440| 20 20 20 20 20 31 20 20 | 0d 20 20 20 20 20 20 20 | 1 |. |
|00000450| 20 31 20 20 20 20 20 20 | 20 20 20 20 33 20 20 20 | 1 | 3 |
|00000460| 20 20 20 20 20 20 20 36 | 20 20 20 20 20 20 20 20 | 6| |
|00000470| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 32 20 20 | 0 | 2 |
|00000480| 0d 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|00000490| 0d 5c 6e 65 77 70 61 67 | 65 0d 0d 0d 0d |.\newpag|e.... |
+--------+-------------------------+-------------------------+--------+--------+